<template>
  <view class="page-wrapper page-space">
    必须有指定角色才能访问的页面
    <view class="demo-code">
      mustHasRole('admin')
    </view>
    或
    <view class="demo-code">
      mustHasRole(['admin', 'dev'])
    </view>
  </view>
</template>

<script lang="ts" setup>
import {mustHasRole} from "@/store/account";

mustHasRole(['admin', 'dev']);

</script>

<style lang="scss">
@import "../index.css";
</style>